//package com.anywide.service.user.impl;
//import java.sql.SQLException;
//
//import javax.annotation.Resource;
//
//import com.anywide.dao.user.UserDAO;
//import com.anywide.dawdler.serverplug.annotation.DBTransaction;
//import com.anywide.dawdler.serverplug.annotation.DBTransaction.READCONFIG;
//import com.anywide.dawdler.serverplug.annotation.Propagation;
//import com.anywide.dawdler.serverplug.transaction.LocalConnectionFacotry;
//import com.anywide.service.user.TestService;
//public class TestServiceImpl implements TestService {
//	@Resource
//	UserDAO userDAO;
//	@Override
//	@DBTransaction(propagation=Propagation.REQUIRES_NEW,readConfig=READCONFIG.deferToConfig)
//	public void insert() throws SQLException {
//		userDAO.updatePrepare("update community_user set gold=? where userid = ?", 5,1);
//		try {
//			int i = userDAO.queryCount("update community_user set sdfsdf = 111");
//		} catch (Exception e) {
//			e.printStackTrace();
//			throw new RuntimeException("1");
//		}
//		
//		System.out.println("read\t"+LocalConnectionFacotry.getReadConnection());
//		System.out.println("write\t"+LocalConnectionFacotry.getWriteConnection());
//	}
//
//}
